import React from 'react'
// 引入路由相关
import { Routes, Route } from 'react-router-dom'
// 引入布局结构组件
import Main from './components/Main'
import CatList from './pages/article/CatList'
import NewsList from './pages/article/NewsList'
import Dashboard from './pages/Dashboard'
import Disease from './pages/Disease'
import Expert from './pages/Expert'
import Medicine from './pages/Medicine'
import Order from './pages/Order'
import Person from './pages/system/Person'
import Role from './pages/system/Role'

function App() {
  return (
    <Main>
      <Routes>
        <Route path="dashboard" element={<Dashboard />} />
        <Route path="system/person" element={<Person />} />
        <Route path="system/role" element={<Role />} />
        <Route path="order" element={<Order />} />
        <Route path="medicine" element={<Medicine />} />
        <Route path="disease" element={<Disease />} />
        <Route path="article/catlist" element={<CatList />} />
        <Route path="article/newslist" element={<NewsList />} />
        <Route path="expert" element={<Expert />} />
      </Routes>
    </Main>
  )
}

export default App
